import service from '@/utils/request'

// @Tags TestingStandard
// @Summary 创建标准测试
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TestingStandard true "创建标准测试"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /testingStandard/createTestingStandard [post]
export const createTestingStandard = (data) => {
  return service({
    url: '/testingStandard/createTestingStandard',
    method: 'post',
    data
  })
}

// @Tags TestingStandard
// @Summary 删除标准测试
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TestingStandard true "删除标准测试"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /testingStandard/deleteTestingStandard [delete]
export const deleteTestingStandard = (params) => {
  return service({
    url: '/testingStandard/deleteTestingStandard',
    method: 'delete',
    params
  })
}

// @Tags TestingStandard
// @Summary 批量删除标准测试
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除标准测试"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /testingStandard/deleteTestingStandard [delete]
export const deleteTestingStandardByIds = (params) => {
  return service({
    url: '/testingStandard/deleteTestingStandardByIds',
    method: 'delete',
    params
  })
}

// @Tags TestingStandard
// @Summary 更新标准测试
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TestingStandard true "更新标准测试"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /testingStandard/updateTestingStandard [put]
export const updateTestingStandard = (data) => {
  return service({
    url: '/testingStandard/updateTestingStandard',
    method: 'put',
    data
  })
}

// @Tags TestingStandard
// @Summary 用id查询标准测试
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.TestingStandard true "用id查询标准测试"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /testingStandard/findTestingStandard [get]
export const findTestingStandard = (params) => {
  return service({
    url: '/testingStandard/findTestingStandard',
    method: 'get',
    params
  })
}

// @Tags TestingStandard
// @Summary 分页获取标准测试列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取标准测试列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /testingStandard/getTestingStandardList [get]
export const getTestingStandardList = (params) => {
  return service({
    url: '/testingStandard/getTestingStandardList',
    method: 'get',
    params
  })
}
